package org.onion.pattern.kit.springtool.web;

import io.swagger.v3.oas.annotations.Hidden;
import org.onion.pattern.kit.springtool.condition.MissingProfile;
import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.lang.annotation.*;

/**
 * 测试或临时接口
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Controller
@ResponseBody
@MissingProfile({"prod"})
@Hidden
public @interface TestRestController {

    @AliasFor(annotation = Controller.class)
    String value() default "";

}
